package org.jeecg.modules.activiti.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: ea_task
 * @Author: qixin-boot
 * @Date:   2021-09-18
 * @Version: V1.0
 */
@Data
@TableName("ea_task")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ea_task对象", description="ea_task")
public class ActEaTask implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人id*/
    @ApiModelProperty(value = "创建人id")
    private String createBy;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String creator;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**单据类型:1差旅费报销单,2借款单,3还款单,4出差申请单,5出差申请变更单,6招待费申请单,7招待费申请变更单,8招待费报销单,9资金支付审批单,10通讯报销单,11电话记录单*/
	@Excel(name = "单据类型:1差旅费报销单,2借款单,3还款单,4出差申请单,5出差申请变更单,6招待费申请单,7招待费申请变更单,8招待费报销单,9资金支付审批单,10通讯报销单,11电话记录单", width = 15)
    @ApiModelProperty(value = "单据类型:1差旅费报销单,2借款单,3还款单,4出差申请单,5出差申请变更单,6招待费申请单,7招待费申请变更单,8招待费报销单,9资金支付审批单,10通讯报销单,11电话记录单")
    private String formType;
    private transient String formTypeName;
	/**审批人id*/
	@Excel(name = "审批人id", width = 15)
    @ApiModelProperty(value = "审批人id")
    private String auditManId;
	/**审批人*/
	@Excel(name = "审批人", width = 15)
    @ApiModelProperty(value = "审批人")
    private String auditMan;
	/**审批时间*/
	@Excel(name = "审批时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "审批时间")
    private Date auditTime;
	/**审批意见*/
	@Excel(name = "审批意见", width = 15)
    @ApiModelProperty(value = "审批意见")
    private String auditComment;
	/**审批状态:0未提交,1未审批,2已审批,3已退回*/
	@Excel(name = "审批状态:0未提交,1已提交审批,2部门负责人已审批,3部门负责人已驳回,4分管领导已审批,5分管领导已驳回,6财务部门已审批,7财务部门已驳回,8总经理已审批,9总经理已驳回", width = 15)
    @ApiModelProperty(value = "审批状态:0未提交,1已提交审批,2部门负责人已审批,3部门负责人已驳回,4分管领导已审批,5分管领导已驳回,6财务部门已审批,7财务部门已驳回,8总经理已审批,9总经理已驳回")
    private String status;
    private transient String statusName;
	/**单据id*/
	@Excel(name = "单据id", width = 15)
    @ApiModelProperty(value = "单据id")
    private String formId;
	/**单据编号:CCBX2021071910035320*/
	@Excel(name = "单据编号:CCBX2021071910035320", width = 15)
    @ApiModelProperty(value = "单据编号:CCBX2021071910035320")
    private String formCode;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String memo;
	/**总金额*/
	@Excel(name = "总金额", width = 15)
    @ApiModelProperty(value = "总金额")
    private BigDecimal totalFee;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序:1差旅费报销单,2借款单")
    private String sort;
	/**标题：差旅费报销单*/
	@Excel(name = "标题：差旅费报销单", width = 15)
    @ApiModelProperty(value = "标题：差旅费报销单,借款单")
    private String title;
	/**发送人id*/
	@Excel(name = "发送人id", width = 15)
    @ApiModelProperty(value = "发送人id")
    private String sendManId;
	/**发送人*/
	@Excel(name = "发送人", width = 15)
    @ApiModelProperty(value = "发送人")
    private String sendMan;
	/**发送人部门id*/
	@Excel(name = "发送人部门id", width = 15)
    @ApiModelProperty(value = "发送人部门id")
    private String sendDepartId;
	/**发送人部门*/
	@Excel(name = "发送人部门", width = 15)
    @ApiModelProperty(value = "发送人部门")
    private String sendDepart;
	/**发送时间*/
	@Excel(name = "发送时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "发送时间")
    private Date sendTime;
	/**完成时间*/
	@Excel(name = "完成时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "完成时间")
    private Date finishTime;
    /**工作流任务id*/
    @Excel(name = "工作流任务id", width = 15)
    @ApiModelProperty(value = "工作流任务id")
    private String workflowTaskId;
    /**流程id*/
    @Excel(name = "流程id", width = 15)
    @ApiModelProperty(value = "流程id")
    private String procinstId;
}
